package com.eqdd.yiqidian.ui.gongneng.renshi.zuzhiguanli;

import android.os.Bundle;
import android.view.View;

import com.eqdd.yiqidian.base.Config;
import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;

/**
 * Created by lvzhihao on 17-7-20.
 */

public class InvitePersonToComActivity extends BaseEnterActivity {

    private String departmentname;
    private Bundle bundle;
    private String careerId;
    private String careerName;
    private String departmentId;

    @Override
    public void itemClick(int p) {
        switch (p) {
            case 0:
                bundle = new Bundle();
                bundle.putString(Config.DEPARTMENT_NAME, departmentname);
                bundle.putString(Config.DEPARTMENT_ID, departmentId+"");
                bundle.putString(Config.CAREER_ID, careerId+"");
                bundle.putString(Config.CAREER_NAME, careerName);
                startActivity(InvitePersonToComFromContactActivity.class, bundle);
                break;
            case 1:
                bundle = new Bundle();
                bundle.putString(Config.DEPARTMENT_NAME, departmentname);
                bundle.putString(Config.DEPARTMENT_ID, departmentId+"");
                bundle.putString(Config.CAREER_ID, careerId+"");
                bundle.putString(Config.CAREER_NAME, careerName);
                startActivity(InvitePersonToComFromPhoneActivity.class,bundle);
                break;
        }
    }

    @Override
    public void initEnterData() {
        initTopTitleBar(View.VISIBLE,"邀请入职");
        departmentname = getIntent().getStringExtra(Config.DEPARTMENT_NAME);
        departmentId = getIntent().getStringExtra(Config.DEPARTMENT_ID);
        careerName =getIntent().getStringExtra(Config.CAREER_NAME);
        careerId = getIntent().getStringExtra(Config.CAREER_ID);
        enterBeans.add(new EnterBean("通讯录邀请"));
        enterBeans.add(new EnterBean("手机号或易企点号邀请"));
    }
}
